<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css" rel="stylesheet"/>
<title>New User Page</title>
</head>
<body>
  <nav class="navbar navbar-inverse" role="navigation">
  <ul class="nav navbar-nav">
      <li class="active"><a href="${pageContext.request.contextPath}/">Job-listing</a></li>
      <li><a href="#">Faculty-edit</a></li>
      </ul>
      
      <ul class="nav navbar-nav navbar-right">
      <li><a href="#">Save</a></li>
       <li><a href="#">Cancel</a></li>
    </ul>
</nav>

<form:form method="POST" commandName="user" action="${pageContext.request.contextPath}/user/register.html" >

</br>
</br>
</br>

<div class="panel panel-default">
  <div class="panel-heading">Name</div>
  <div class="panel-body">
<table>
<tbody>
<tr>
<td>Username:</td>
<td><form:input path="username" type="text" /></td>
<td><form:errors path="username" cssStyle="color: red;"/></td>
<td>Password:</td>
<td><form:input path="password" type="password" /></td>
<td><form:errors path="password" cssStyle="color: red;"/></td>

<td>Type:</td>

<td>
<div class="radio">
  <label>
    <form:radiobutton value="student" path="type" checked="true" />
    Student
  </label>
</div>
<div class="radio">
  <label>
    <form:radiobutton path="type" value="faculty" />
    Faculty
  </label>
</div>
</td>
<td>
<input type="submit" value="Register" />
</td>
</tr>
</tbody>
</table>
  </div>
</div>
</form:form>
</body>
</html>